package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureGermplasmIntro;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 种质介绍业务对象 agriculture_germplasm_intro
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureGermplasmIntro.class, reverseConvertGenerate = false)
public class AgricultureGermplasmIntroBo extends BaseEntity {

    /**
     * 介绍ID
     */
    @NotNull(message = "介绍ID不能为空", groups = { EditGroup.class })
    private Long introId;

    /**
     * 种质ID
     */
    @NotNull(message = "种质ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long germplasmId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introName;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introImg;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introDes;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;


}
